import React, { Component, useState } from "react";
// export default class Three extends Component {
//     render() {
//         return (
//             <div>
//                 <h1>组件Three</h1>
//             </div>
//         )
//     }
// }

export default function Three({ getThree }) {
    let [haha] = useState("haha")
    function getOne() {
        getThree(haha)
    }
    return (
        <div>
            haha:{haha}
            <button onClick={getOne}>发送给One</button>
        </div>
    )
}